

{% extends "bootstrap/base.html" %}
{% block title %}
    采购列表
{% endblock %}
{% include 'nav.html' %}
{% block content %}
<body background="{{ url_for('static', filename='images/background.jpg') }}">
<div class="container login-page" style="padding-top: 20px">
    <div class="row">

        <a href="{{ url_for('admin.costorder') }}">添加采购</a>
        {% for costorder in costorders %}
          <div class="table-responsiv">
            <table class="table" border="2px">
                <tbody>
                    <tr>
                        <td>采购时间:{{ costorder.date }}</td>
                        <td>采购编号:{{ costorder.caigbh }}</td>
                        <td >采购标题:{{ costorder.name }}</td>
                        <td >采购金额</td>
                        <td rowspan="{{ costorder.costlists|length}}">采购人:{{ costorder.caigr }}</td>

                    </tr>
                    {% for costlist in costorder.costlists %}
                    <tr>
                        <td>{{ costlist.commoditys.name }}</td>
                        <td>{{ costlist.caigjg }}</td>
                        <td>{{ costlist.caigsl }}</td>
                    <td>{{ costlist.caigjg*costlist.caigsl }}</td>
                    {% endfor %}
                    <td>总额:暂未想到实现


                    </td>
                    </tr>

                </tbody>
             </table>
        {% endfor %}
        </div>
    </div>
</div>
</body>
{% endblock %}
